package com.donleo.jpa.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * @author liangd
 * date 2020-12-04 09:03
 * code 权限表
 */
@Entity(name = "authority")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuthorityEntity implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int id;
    private String authName;
    private String authCode;
    private Integer pid;

}
